package com.yupi.usercenter.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yupi.usercenter.model.entity.MonitorWoLog;
import com.yupi.usercenter.model.vo.MonitorWoLogDetailVO;
import com.yupi.usercenter.model.vo.MonitorWoLogVO;
import com.yupi.usercenter.model.vo.ProblemExpressWoExcelVO;

import java.util.List;

/**
 * 云路供应链科技有限公司 版权所有 © Copyright 2020
 * <p>
 * 监控工单记录 服务类
 *
 * @author jiweiyu
 * @version 1.0.0
 * @date Created in 2021-03-05
 */
public interface IMonitorWoLogService extends IService<MonitorWoLog> {

    MonitorWoLogDetailVO detail(long id);

    Boolean add(MonitorWoLog dto);

    /**
     * @author: jiweiyu
     * @description:
     * @date: 2020/8/15 16:49
     * @param:
     * @return:
     **/
    List<MonitorWoLogVO> getProblemExpressWoLogList(Long workOrderId);

    /**
     * 通过问题件工单ID批量查询流转记录信息
     * @param ids
     * @return
     */
    List<MonitorWoLog> findBatchByProblemExpressWoIds(List<Long> ids);

    /**
     * 通过问题件记录查询最后一次的流转记录
     * @param id
     * @return
     */
    MonitorWoLog findLastLogByProblemExpressId(Long id);

    /**
     *
     * @author jiweiyu
     * @date 2020/11/8 10:06
     * @param
     * @param ids
     * @return java.util.List<com.yl.qc.api.model.vo.ProblemExpressWoExcelVO>
     **/
    List<ProblemExpressWoExcelVO> findLastProcessNodeByWorkOrderIdList(List<Long> ids);

    /**
     * 删除日志表的里面的已出账的流水记录
     * @param ids
     * @return
     */
    void deleteBilledData(List<Integer> ids);

    String getCompletePhone(Long id);

}
